home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Magazine / PC2Amiga / Samba / docs / textdocs / smbmount.txt < prev    next >
Text File  |  2000-04-25  |  4KB  |  101 lines

  1. !==
  2. !== smbmount.txt for Samba release 2.0.7 26 Apr 2000
  3. !==
  4. Date:           October 15, 1999
  5. Contributor:    Urban Widmark <urban@svenskatest.se>
  6.  
  7. Subject:        smbmount usage and mount.smb
  8. ===============================================================================
  9.  
  10. Words
  11. -----
  12.  
  13. smbfs      - A filesystem that gives you access to a SMB share as a filesystem.
  14.              This is done as a normal kernel filesystem. Currently this is for
  15.              Linux only.
  16. smbmount   - The program that does the initial SMB setup with the server.
  17. mount.smb  - A link to smbmount that is created (always in /sbin) when you
  18.              install samba.
  19.  
  20.  
  21. What's going on?
  22. ----------------
  23.  
  24. The syntax for mounting SMB shares has been changed so that shares can
  25. be mounted with the normal mount command. When giving a -t smbfs flag to
  26. mount it knows to call an external mount program, mount.smb. With the
  27. new syntax, smbmount can be that mount.smb (through a symlink).
  28.  
  29. This requires a recent enough version of the mount program for Linux,
  30. you almost certainly have this (exact util-linux version anyone?).
  31.  
  32. With the new format you should not have to call smbmount/mount.smb
  33. directly. Instead you do something like this:
  34.  
  35.   mount -t smbfs -o user=tridge,passwd=foobar //fjall/test /data/test
  36.  
  37. The current list of options are:
  38.       username=<arg>                  SMB username
  39.       password=<arg>                  SMB password
  40.       netbiosname=<arg>               source NetBIOS name
  41.       uid=<arg>                       mount uid or username
  42.       gid=<arg>                       mount gid or groupname
  43.       port=<arg>                      remote SMB port number
  44.       fmask=<arg>                     file umask
  45.       dmask=<arg>                     directory umask
  46.       debug=<arg>                     debug level
  47.       ip=<arg>                        destination host or IP address
  48.       workgroup=<arg>                 workgroup on destination
  49.       sockopt=<arg>                   TCP socket options
  50.       scope=<arg>                     NetBIOS scope
  51.       guest                           don't prompt for a password
  52.       ro                              mount read-only
  53.       rw                              mount read-write
  54.  
  55. If you already have a mount.smb script you probably do not need it
  56. anymore.
  57.  
  58.  
  59. /etc/fstab
  60. ----------
  61.  
  62. One of the advantages with this setup is that you can put entries for
  63. smbfs in your fstab.
  64.  
  65.  
  66. autofs
  67. ------
  68.  
  69. mount.smb makes autofs integration much easier, since it is now
  70. "yet-another-filesystem".
  71.  
  72. Before, autofs had to parse the given options and then send them to
  73. smbmount in the right format. This "right format" changed between
  74. 1.9.x and 2.0.x (and even between 2.0 versions). That is a pain when
  75. multiple packages are involved, this new setup should be a cleaner
  76. interface.
  77.  
  78. The only thing that now changes if smbclient changes options are what
  79. you have to put in your autofs maps.
  80.  
  81. Example /etc/autofs.data:
  82. test -fstype=smb,username=tridge,password=foobar,uid=123 ://fjall/test
  83.  
  84.  
  85. Strange dates
  86. -------------
  87.  
  88. This really has nothing to do with smbclient, but if you are using
  89. smbfs you're likely to read this file when you run into problems so I
  90. put ithere anyway ... :)
  91.  
  92. In older versions of Linux (before 2.2.10) smbfs did not automatically
  93. recognise some buggy win95 servers. Instead there was an option for a
  94. workaround that could be set at compile time. The problem with setting
  95. that option was that it would give funny dates when looking at shares
  96. from a NT box.
  97.  
  98. Upgrade to the latest 2.2 version (2.2.12 is fine) if you are having
  99. this problem. RedHat 6.0 comes with a kernel that is compiled with
  100. this option set.
  101.